#coding=utf-8
from django.conf.urls.defaults import *
import os

urlpatterns = patterns('',
#    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
#            {'document_root': os.path.join(os.path.dirname(__file__), "media")}),
    (r'^$', 'main.views.index'),
    (r'^admin', 'main.views.admin', {"template":"admin_index.html"}),
    (r'^login_or_reg', 'auth.views.login_or_reg'),
    (r'^redirect_parent', 'common.views.redirect_parent'),
    (r'^favorite/', include("favorite.urls")),
    (r'^newspaper/', include("newspaper.urls")),
)
